package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by 黄江华 on 2018/7/20
 */

@ApiModel
public class EditParamReq extends BaseRequest {

    @NotNull(message = "pId不能为空")
    @Min(value = 1, message = "pId必须大于0")
    private Integer pId;

    @ApiModelProperty("字典类型")
    @NotEmpty(message = "字典类型不能为空")
    @Length(max = 50, message = "字典类型不能超过50个字符")
    private String pType;

    @ApiModelProperty("字典key")
    @NotEmpty(message = "字典key不能为空")
    @Length(max = 50, message = "字典key不能超过50个字符")
    private String pKey;

    @ApiModelProperty("字典value")
    @NotEmpty(message = "字典value不能为空")
    @Length(max = 50, message = "字典value不能超过50个字符")
    private String pValue;

    @ApiModelProperty("字典排序")
    @NotNull(message = "字典排序不能为空")
    @Range(min = 0, message = "字典排序不能小于0")
    private Integer sort;

    @ApiModelProperty("备注")
    private String remark;

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getpType() {
        return pType;
    }

    public void setpType(String pType) {
        this.pType = pType;
    }

    public String getpKey() {
        return pKey;
    }

    public void setpKey(String pKey) {
        this.pKey = pKey;
    }

    public String getpValue() {
        return pValue;
    }

    public void setpValue(String pValue) {
        this.pValue = pValue;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
